import numpy as np
import cv2 as cv
from matplotlib import pyplot as plt

path = '/Users/wanggh/Desktop/original.jpeg'
img = cv.imread(path)
gray = cv.cvtColor(img, cv.COLOR_BGR2GRAY)
corners = cv.goodFeaturesToTrack(gray, 25, 0.01, 10)
corners = np.int0(corners)
for i in corners:
    x, y = i.ravel()
    cv.circle(img, (x, y), 3, 255, -1)

cv.imshow("test", img)
cv.waitKey(0)
cv.destroyAllWindows()
